"use strict";
cc._RF.push(module, 'ca7cc49P3tNT6ryTYiIWhNZ', 'AudioManager');
// scripts/AudioManager.js

"use strict";

var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {
  value: !0
});

var i = t("GlobalUserData"),
    n = t("Util"),
    a = t("AssetsManager"),
    r = function () {
  function t() {}

  return Object.defineProperty(t, "Ins", {
    get: function get() {
      return null == t.instance && (t.instance = new t()), t.instance;
    },
    enumerable: !1,
    configurable: !0
  }), t.prototype.init = function (e) {
    console.log("初始化音效"), t._audioSource = e;
  }, t.prototype.playSound = function (e) {
    i["default"].isOffMusic || (t._audioSource, n.Util.getAssets(n.Util.getBundle(a.BundleName.Game), e).then(function (t) {
      var e = t;
      cc.audioEngine.play(e, !1, 1);
    }));
  }, t.instance = null, t;
}();

o["default"] = r;

cc._RF.pop();